<?php
foreach ($items as $item) {
    ?>
    <tr value="<?= $item["id"] ?>">
        <td><input type="checkbox"></input></td>
        <td><?= $item["order_time"] ?></td>
        <td><?= $item["sub_center_name"] ?></td>
        <td><?= $item["customer_company"] ?></td>
        <td><?= $item["order_type"] === 1 ? "个单" : "团单" ?></td>
        <td><?= $item["people_count"] ?></td>
        <td>
            <input type="button" onclick="getOrderDetail(this);" url="<?= $item["order_type"] === 1 ? $this->createUrl("gedan", array("id" => $item["id"])) : $this->createUrl("tuandan", array("id" => $item["id"])) ?>"
                   value="详情" name="test" />
        </td>
    </tr>
    <?php
}
?>